2 * Adium is the legal property of its developers, whose names are listed in the copyright file included
3 * with this source distribution.
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6 * General Public License as published by the Free Software Foundation; either version 2 of the License,
7 * or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
10 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11 * Public License for more details.
13 * You should have received a copy of the GNU General Public License along with this program; if not,
14 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 #import <Adium/AIStatusControllerProtocol.h>
18 #import "DCPurpleMeanwhileJoinChatViewController.h"
19 #import "ESPurpleMeanwhileAccount.h"
20 #import "ESPurpleMeanwhileAccountViewController.h"
21 #import "ESMeanwhileService.h"
22 #import <AIUtilities/AICharacterSetAdditions.h>
24 @implementation ESMeanwhileService
27 - (Class)accountClass{
28 return [ESPurpleMeanwhileAccount class];
31 - (AIAccountViewController *)accountViewController{
32 return [ESPurpleMeanwhileAccountViewController accountViewController];
35 - (DCJoinChatViewController *)joinChatView{
36 return [DCPurpleMeanwhileJoinChatViewController joinChatView];
40 - (NSString *)serviceCodeUniqueID{
41 return @"libpurple-Sametime";
43 - (NSString *)serviceID{
46 - (NSString *)serviceClass{
49 - (NSString *)shortDescription{
52 - (NSString *)longDescription{
53 return @"Lotus Sametime";
55 - (NSCharacterSet *)allowedCharacters{
56 NSMutableCharacterSet *allowedCharacters = [[NSCharacterSet alphanumericCharacterSet] mutableCopy];
57 NSCharacterSet *returnSet;
59 [allowedCharacters formUnionWithCharacterSet:[NSCharacterSet punctuationCharacterSet]];
60 [allowedCharacters formUnionWithCharacterSet:[NSCharacterSet symbolCharacterSet]];
61 [allowedCharacters addCharactersInString:@" "];
63 returnSet = [allowedCharacters immutableCopy];
64 [allowedCharacters release];
66 return [returnSet autorelease];
68 - (NSCharacterSet *)ignoredCharacters{
69 return [NSCharacterSet characterSetWithCharactersInString:@""];
74 - (BOOL)caseSensitive{
77 - (AIServiceImportance)serviceImportance{
78 return AIServiceSecondary;
80 - (BOOL)canCreateGroupChats{
83 - (void)registerStatuses{
85 [[adium statusController] registerStatus:STATUS_NAME_AVAILABLE
86 withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_AVAILABLE]
87 ofType:AIAvailableStatusType
91 [[adium statusController] registerStatus:STATUS_NAME_AWAY
92 withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_AWAY]
93 ofType:AIAwayStatusType
97 [[adium statusController] registerStatus:STATUS_NAME_DND
98 withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_DND]
99 ofType:AIAwayStatusType
103 m = g_list_append(m, _("Active"));
104 m = g_list_append(m, _("Away"));
105 m = g_list_append(m, _("Do Not Disturb"));